@import "functions.less";
@img_path0: "../img";
@img_path1: "../img/header";
@img_path2: "../img/icons";
/* 中等屏幕（桌面显示器，大于等于 1080px） */
body{
    min-height: 500px;
    min-width:450px;
}
.page-loading{
      background-image: url("@{img_path0}/load.gif");
      background-repeat: no-repeat;
      background-position: center center;
}
/* 头部菜单 */
.g-header {
    width: 100%;
    background-image: url("@{img_path1}/bg.png");
    background-repeat: repeat;
    position: relative;
    z-index: 50;
    .main {
        padding: 0 0 0 20px;
        display: block;
        .g-fl {
            background-image: url("@{img_path1}/bg.png");
            background-repeat: repeat;
            position: relative;
            top: 11px;
            margin-bottom: 15px;
        }
        i {
            vertical-align: middle;
            position: absolute;
            margin-right: 0;
            left: 15px;
            top: 50%;
            margin-top: -8px;
        }
        .gi0-t{
            margin-top: -9px;
        }
        em {
            font-size: 10px;
            position: absolute;
            font-style: normal;
            padding: 0 5px;
            line-height: 16px;
            height: 16px;
            -webkit-border-radius: 25px;
            -moz-border-radius: 25px;
            border-radius: 25px;
            background-color: #f67b7e;
            color: #fff;
        }
        .g-fr {
            font-size: 14px;
			span.no-admin{
				float:left;
				color: #fefefe;
				padding: 14px 10px 14px 43px;
				line-height: 20px;
			}
            a{
                &.item{
                    display: none;
                }
                float:left;
                padding: 14px 10px 14px 43px;
                text-align: center;
                color: #fefefe;
                position: relative;
                line-height: 20px;
                border-left: 1px solid #4b89bc;
                &.on, &:hover {
                    background-color: #356f9e;
                }
                &.admin{
                    &:hover,&.active{
                        background-color: #fafafa;
                        color:#0078d7;
                    }
                    padding-left: 53px;
                    em {
                       left: 37px;
                       top: 5px;
                   } 
                    img {
                        height: 30px;
                        width: 30px;
                        display: inline-block;
                        vertical-align: middle;
                        top: -2px;
                        position: absolute;
                        margin-right: 0;
                        left: 15px;
                        top: 50%;
                        margin-top: -15px;
                    }
                }
                &.moremenu{
                    height: 48px;
                    padding:0;
                    width: 56px;
                    &:hover,&.active{
                        background-color: #fff;
                       .gi2{
                        background-position: -2px -455px;
                        left:21px;
                       }
                    }
                }
                &.moremenu{
                    display: none;
                }
                &.history{
                    height: 48px;
                    padding:0;
                    width: 56px;
                    &:hover,&.active{
                        background-color: #fafafa;
                       .gi-his{
                         background-image: url("@{img_path0}/his0.png");
                       }
                    }
                }
            }
        }
    }
}
/* 历史记录 */
.g-history-list{
    width: 260px;
    position: absolute;
    z-index: 51;
    background-color: #fafafa;
    height: 100%;
    display: none;
    border-left:1px solid #ececec;
    h2{
        font-size: 14px;
        height: 35px;
        line-height: 35px;
        position: relative;
        padding:0 10px;
        margin-top: 0;
        color:#333;
        font-weight: bold;
        em{
            position: absolute;
            right:10px;
            color:#0078d7;
            font-style: normal;
            font-size:14px;
            font-weight: normal;
        }
        border-bottom:1px solid #ececec;
    }
    dt{
        font-size: 14px;
        height: 40px;
        line-height: 40px;
        color:#888;
        padding: 0 40px;
        .fn_word_break();
    }
    dd{
        padding: 0 40px;
        font-size: 12px;
        height: 30px;
        line-height: 30px;
        color:#999;
        .fn_word_break();
    }
}
.g-action-box{
    position: absolute;
    background-color: #fafafa;
    z-index: 51;  
    display: none;
    border:1px solid #d8d8d8;
    border-top:none;
    -webkit-box-shadow:0 2px 5px #ccc;
    -moz-box-shadow: 0 2px 5px #ccc;
    box-shadow: 0 2px 5px #ccc;
   /*  em{
       position: absolute;
       background-image: url("@{img_path0}/arrow.png");
       background-position: 0 0;
       background-repeat: no-repeat;
       width:14px;
       height:6px;
       top:-6px;
       right:30px; 
   } */
    a{
        display: block;
        height: 30px;
        line-height: 30px;
        width: 122px;
        color:#333;
        font-size: 14px;
        padding-left: 15px;
        &.on,&:hover{
            background-color: #eee;
        }
        i{
            display: inline-block;
            vertical-align: middle;
            margin-right: 5px;
            vertical-align: middle;
            position: relative;
            top: -2px;
            
        }
    }
  }
  .g-menu-box{
    position: absolute;
    background-image: url("@{img_path1}/bg.png");
    z-index: 51;  
    display: none;
    border:1px solid #d8d8d8;
    border-top:none;
    -webkit-box-shadow:0 2px 5px #ccc;
    -moz-box-shadow: 0 2px 5px #ccc;
    box-shadow: 0 2px 5px #ccc;
   /*  em{
       position: absolute;
       background-image: url("@{img_path0}/arrow.png");
       background-position: 0 0;
       background-repeat: no-repeat;
       width:14px;
       height:6px;
       top:-6px;
       right:30px; 
   } */
    a{
        display: block;
        height: 30px;
        line-height: 30px;
        width: 122px;
        color:#fff;
        font-size: 14px;
        padding-left: 15px;
        &.on,&:hover{
            background-color: #356f9e;
        }
        i{
            display: inline-block;
            vertical-align: middle;
            margin-right: 5px;
            vertical-align: middle;
            position: relative;
            top: -2px;
            
        }
    }
  }
  .g-set-box{
    position: absolute;
    background-color: #fafafa;
    z-index: 51;  
    display: none;
    border:1px solid #d8d8d8;
    border-top:none;
    -webkit-box-shadow:0 2px 5px #ccc;
    -moz-box-shadow: 0 2px 5px #ccc;
    box-shadow: 0 2px 5px #ccc;
    a{
        display: block;
        height: 60px;
        line-height: 30px;
        width: auto;
        padding:10px 30px 0;
        color:#333;
        font-size: 14px;
        &.on,&:hover{
            background-color: #eee;
        }
    }
    .checkbox{
        display: inline-block;
        position: relative;
        top: 6px;
        left: 10px;
    }
  }
/*主导航条*/
.g-nav{
    width: 180px;
    position: absolute;
    left:0;
    z-index: 49;
    background-color: #333742;
    height: 100%;
    .slimScrollDiv{
        position: static!important;
    }
    .search-box{
        background-color: #484b55;
        position: relative;
        .gi0{
            position: absolute;
            top: 8px;
        }
        .gi-22{
            top: 0;
            width: 30px;
            right: 0;
            height: 100%;
            background-position: 6px -117px;
        }
        .gi-21{
            left: 15px;
        }
    }
    .search{
        line-height: 34px;
        background-color: #484b55;
        border: none;
        margin: 0 0 0 40px;
        color: #fff;
        width: 100px;
        padding: 0;
        .fn_border_radius(0px);
        .fn_box_shadow(none);
        border-right: 1px solid #333742;
    }
    .gi1,.gim{
        position:absolute;
        left:15px;
        top:12px;
    }
    .gi0-l{
        position:absolute;
        left: 13px;
        top: 11px;
    }
    .gi0{
        position: absolute;
    }
    .gi-23, .gi-24{
        right: 20px;
        top: 20px;
    }
    .gi-25{
       left:20px;
       top:16px;
    }
    li a{
        height: 40px;
        line-height: 40px;
        display: block;
        font-size: 14px;
        padding-left: 40px;
        position: relative;
    }
    .nav-first-level{
        z-index: 50;
    }
    .nav-second-level{
        position: absolute;
        left:180px;
        top:0;
    }
    .nav-first-level{
        background-color: #333742;
        a{
            color:#c0c9d2;
        }
       li:hover,li.active{
            background-color: #484b55;
            background-image: url("@{img_path0}/bg0.png");
            background-repeat: no-repeat;
            background-position: 0 0;
        }
        li:hover>a .gi1,li.active>a .gi1{
            background-image: url("@{img_path0}/icon1-on.png");
        }
        li:hover>a .gi0-l,li.active>a .gi0-l{
            background-image: url("@{img_path0}/icon0-left-on.png");
        }
        li:hover>a i,li.active>a i{
            &.gim-01{
              background-image: url("@{img_path2}/01-on.png");
            }
            &.gim-02{
              background-image: url("@{img_path2}/02-on.png");
            }
            &.gim-03{
              background-image: url("@{img_path2}/03-on.png");
            }
            &.gim-04{
              background-image: url("@{img_path2}/04-on.png");
            }
            &.gim-05{
              background-image: url("@{img_path2}/05-on.png");
            }
            &.gim-06{
              background-image: url("@{img_path2}/06-on.png");
            }
            &.gim-07{
              background-image: url("@{img_path2}/07-on.png");
            }
            &.gim-08{
              background-image: url("@{img_path2}/08-on.png");
            }
            &.gim-09{
              background-image: url("@{img_path2}/09-on.png");
            }
            &.gim-10{
              background-image: url("@{img_path2}/10-on.png");
            }
            &.gim-11{
              background-image: url("@{img_path2}/11-on.png");
            }
            &.gim-12{
              background-image: url("@{img_path2}/12-on.png");
            }
            &.gim-13{
              background-image: url("@{img_path2}/13-on.png");
            }
            &.gim-14{
              background-image: url("@{img_path2}/14-on.png");
            }
        }
        li:hover>a,li.active>a{
               color:#fff;
        }
    }
    .nav-second-level{
       background-color: #444855;
       display: none;
        li.active>a{
            background-color: #636774;
               color:#fff;
        }
       a{
        color:#c0c9d2;
        padding-left: 20px;
        width: 160px;
           &:hover{
               background-color: #636774;
               color:#fff;
           }
        }
    }
    .nav-third-level{
        display: none;
         li.active>a{
             background-color: #377cb4;
        }
        a{
           padding-left: 35px;
           width: 145px;
           color:#fff; 
           height: 35px;
           line-height: 35px;
           &:hover{
           background-color: #377cb4;
         }
        }
       background-color: #545865;
       padding: 5px 0;
   }
}
.g-main-container{
    margin-left: 180px;
    background-color: #eee;
    overflow: hidden;
}
/* 迷你导航条 */
.g-mini-nav{
    .g-nav{
         width: 60px;
         transition: all .5s;
    }
    .search-box{
        height: 34px;
        input{
            display: none;
        }
        .gi-21{
            display: none;
        }
        .gi-22{
            width: 60px;
            background-position: 15px -309px;
        }
        transition: all 0s;
    }
    .nav-second-level{
        left:60px;
    }
   .nav-first-level{
    width: 60px;
   }
   .nav-label{
    display: none;
   }
   .g-main-container{
    margin-left: 60px;
   }
}
/*tab选项卡*/
.g-content-tabs {
    position: relative;
    background: #fff;
    height: 30px;
    line-height: 30px;
    .roll-nav{
        position: absolute;
        width: 30px;
        height: 100%;
        background-color: #fff;
        top: 0;
    }
    .roll-left{
        left:0;
        background-position: 8px -23px;
        display: none;
    }
    .roll-right{
        right:80px;
        background-position: 8px 10px;
        display: none;
    }
    .roll-close{
        right:0;
        width: 80px;
        text-align: center!important;
        color: #999;
        border-left: 1px solid #ececec;
        font-size: 12px!important;
    }
    .roll-close button{
        background: #fff;
        border: 0;
        outline: 0;
        padding:0;
    }
    .dropdown-menu{
        font-size: 12px;
        text-align: center!important;
        min-width: 120px;
    }
}
.page-tabs {
    margin-left: 0;
    width: 100000px;
    overflow: hidden
}
.page-tabs .page-tabs-content {
    float: left
}
.page-tabs a {
    display: block;
    float: left;
    padding: 0 25px 0 10px;
    color:#333333;
    font-size: 12px;
    background-color: #fff;
    position: relative;
    i{
        display: none;
        position: absolute;
        right: 0px;
        top: 0;
        height: 100%;
        width: 20px;
        background-position: 2px 10px;
    }
}
.page-tabs a:hover,.page-tabs a.active{
    color: #777;
    background: #eff0f4;
    cursor: pointer;
    i{
        display:block;
    }
}
.g-search-nav{
    position: absolute;
    z-index: 2;
    background-color: #484b55;
    width: 100%;
    height: 100%;
    top:31px;
    a,.no-nav{
        display: block;
        height: 40px;
        line-height: 40px;
        color: #fff;
        padding-left: 0;
        padding-left: 40px;
        font-size: 14px;
        &:hover{
             //background-color:#377cb4!important;
            // color:#fff!important;
        }
    }
}
